package ex3.controller.demo2;

import java.util.regex.Matcher;
import java.util.regex.Pattern;

/**
 * @AUTHOR 尹书岿
 * @DATE 2024/12/11 16:41
 * @DESCRIBE  第五次 模板生成系统
 */
public class zhengze2 {
    public static void main(String[] args) {
        String str = "13855556666";
        Pattern pattern = Pattern.compile("^([0-9]+)([0-9]+)$");
        Matcher matcher = pattern.matcher(str);
        if (matcher.matches()){
            System.out.println(matcher.group(1));//惰性匹配
            System.out.println(matcher.group(2));

        }
    }
}
